package ink.xiaobaibai.common;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @description: 续约月费
 * @author: 小白白
 * @create: 2021-08-04
 **/

@Data
public class XuMonthly {

    @NotNull
    private Integer deviceId;

    @NotNull
    @Max(value = 12, message = "最长续约一年")
    @Min(value = 1, message = "最短续约一年")
    private Integer count;

    private Integer couponId;

    private String couponCode;

}
